def isPalindrome(s):
    if not s:
        return True
    if __name__ == "__main__":
     isPalindrome= ["abcba", "abba", "abc", "a", "", "ab c ba", "ab cd"]
    for s in isPalindrome:
        result = "是" if isPalindrome(s) else "不是"
        print(f"字符串'{s}'{result}回文")